//
//  Constant.h
//  BowJoy
//
//  Created by  on 2024/5/14.
//

#ifndef Constant_h
#define Constant_h

// 当前版本version
#define kCurVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]


#define kCurBuild [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]

// 弱引用
#define strong_Self     __strong typeof((weakSelf)) strongSelf = (weakSelf)
#define kWeakSelf(weakSelf) __weak typeof(self)weakSelf = self;

#ifndef AsGetMethodReturnObjc
    #define AsGetMethodReturnObjc(objc) if (objc) return objc
#endif
// Nav状态栏下面高度
#define kNavNormalHeight                44.f
// 以前的固定高度
#define kTabBarNormalHeight             49.f
// 获取顶部视图高度
#define kNavBarHeight                   (44 + 49)
// 获取Tabbar高度
#define kTabBarHeight                   (kTabbarSafeBottomMargin + kTabBarNormalHeight)
#define kTabbarHeight                   ([[UIApplication sharedApplication] statusBarFrame].size.height>20?83:49)\
//  获取底部安全高度
#define kBottomSafeHeight               (ISBangsPhone ? (34.0):(0))
#define kAppDelegate  ((AppDelegate *)[UIApplication sharedApplication].delegate)
#define kRGBA(r, g, b, a) ([UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a])
#define PopViewBackColor kRGBA(0, 0, 0, 0.65)






#define kUserTokenKey @"kUserTokenKey"
#define kUserIdKey @"kUserIdKey"
#define kNotificationAppleSuccessfulPurchase @"Notification_appleSuccessfulPurchase"//商品购买苹果支付(支付)成功通知



#define kTodayDateKey @"kTodayDateKey"//每日打卡
#define KCheckAllNumKey @"KCheckAllNumKey"//打卡弓箭总数目
#define KCheckNumKey @"KCheckNumKey"//弓箭数目
#define KIsAvatarFrameKey @"KIsAvatarFrameKey"//头像框权限
#define KSelectPictureFrameKey @"KSelectPictureFrameKey"//选中哪个头像框



#endif /* Constant_h */
